package com.briup.estore.common.pojo;

/**
 * @Author briup-adam
 * @Date 2023/7/31 上午11:08
 * @Description 图书实体类
 **/

public class Book {
    private  int  id;
    /**
     * 图书名称
     */
    private String name;
    /**
     * 图书封面图片
     */
    private String cover;

    /**
     * 图书简介
     */
    private String description;

    /**
     * 图书作者
     */
    private String author;

    /**
     * 图书出版社
     */
    private String publisher;

    /**
     * 图书价格
     */
    private Double price;

    /**
     * 库存数量
     */
    private int storeNum;

    /**
     * 图书状态  0: 上架 1：下架
     */
    private int status;

    /**
     * 图书分类ID
     */
    private int categoryId;

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cover='" + cover + '\'' +
                ", description='" + description + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                ", price=" + price +
                ", storeNum=" + storeNum +
                ", status=" + status +
                ", categoryId=" + categoryId +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStoreNum() {
        return storeNum;
    }

    public void setStoreNum(Integer storeNum) {
        this.storeNum = storeNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
}
